﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ElementProject:SFuncBase
{
    public BelongingSystem Sys;
    public ElementState State;
    public float ShootGap;
    float lastShootTime = float.NegativeInfinity;
    public override void SStart()
    {
        base.SStart();
        lastShootTime = float.NegativeInfinity;
    }
    public override void ServerKeyDown()
    {
        base.ServerKeyDown();
        if (Time.time - lastShootTime > ShootGap)
        {
            lastShootTime = Time.time;
        }
    }
}
